home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-12-22 | 2.2 KB | 58 lines | [TEXT/GEOL] |
- Item 5043604 21-Dec-89 22:15
-
- From: MADA2 MacApp Dev Assoc, Curtis Faith
-
- To: ANIMATRIXDEV Animatrix, David Goldman,PRT
-
- cc: MACAPP.TECH$ MacApp Technical
-
- Sub: RE Scrollers/clipping
-
- Steven,
-
- I recently had to implement a similar concept to your dragging grids for the
- AppleLink archiving application I am putting the finishing touches on.
-
- What I had was 2 side by side TextListViews. One the left is a list of new
- links on the right is a list of recent Threads. You drag the links from the
- left to the right and the right TextListView highlights where they will be
- placed.
-
- There were several problems:
-
- 1) TrackFeedBack is clipped to the view that originates it by default. I got
- around this by having the container (Window?) view create the tracking command
- and by manipulating the TextListViews from the outside. Thus the container
- does not have to worry about clipping as it contains both TextListViews.
-
- 2) The TextListViews are each contained in a Scroller thus each mouse
- coordinate must be converted from the container to the TextListViews coordinate
- system via 2 calls to SuperToLocal:
-
- scroller1.SuperToLocal;
- textListView1.SuperToLocal;
-
- for things like highlighting cells etc.
-
- 3) I needed to change focus often. The debugger is very kind about reminding
- you of this need.
-
- 4) The highlighting was very tricky. I had to read the source for GridViews
- over several times before I figured out exactly what I needed to do. This may
- not be a problem for you depending on what you want to do.
-
- 5) It became very complicated and is on my list for reassesment and
- beautification. It was the single most complicated aspect of the application.
- Looking back on it, I feel that it could be done much more simply. (I don't
- know exactly what that means as it is only a feeling)
-
- I am not sure if there is a better way, but I know that this way works. It
- seemed at the time (even more so now) to be a great kludge but I have not
- thought it through enough to be able to offer any better solution.
-
- I did want to reply since it appeared as though noone else had as of yet.
-
- - Curtis
-
-
-